<?php
/**
 * Created by PhpStorm.
 * User: 40323
 * Date: 2017-09-12
 * Time: 20:53
 */

namespace app\index\model;


use think\Model;

class Role extends Model
{

    public function user()
    {
        // 角色 BELONGS_TO_MANY 用户
        return $this->belongsToMany('User','access');
    }


}